<?php
/**
 * Create by Phpstorm
 * User: Peco
 * Date: 2019/12/4
 * Time: 19:10
 */


namespace App\Http\Requests\User;


use App\Http\Requests\ApiRequest;

class DeleteUserRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * 传递参数 验证规则
     *
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'ids' => 'required',
        ];
    }

    /**
     * 获取已定义验证规则的错误消息。
     *
     * @return array
     */
    public function messages()
    {
        return [
            'ids.required' => '请选择用户',
        ];
    }
}
